package shared;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;

public abstract class HelperBase {
	protected HttpServletRequest request;
	protected HttpServletResponse response;
	protected Logger logger;

	public HelperBase(HttpServletRequest request, HttpServletResponse response) {
		this.request = request;
		this.response = response;
		logger = Logger.getLogger("firstApp.HelperBase");
		logger.setLevel(Level.DEBUG);
	}

	protected abstract void copyFromSession(Object helper);

	public abstract void addHelperToSession(String name, SessionData state);

}
